package cn.jxufe.controller;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import cn.jxufe.entity.CropsStatus;
import cn.jxufe.service.CropsStatusService;

/***
 * 获取种子状态名称
 * @author Banner
 *
 */
@Controller
@RequestMapping("cropsStatus")
public class CropsStatusController {
	@Autowired
    private CropsStatusService cropsStatusService;
	
	/***
	 * 获取种子不同阶段的名称
	 * @return 种子不同状态信息列表
	 */
	@RequestMapping("data")
	@ResponseBody
	public List<CropsStatus> grid() {
		
		return cropsStatusService.data();
	}
	
	
}
